import request from '@/utils/request'

// 获取工单列表
export const getTaskList = params => request.get('/task-service/task/search', { params })

// 新建工单
export const createTask = data => request.post('/task-service/task/create', data)

// 获取工单状态列表
export const getTaskStatus = () => request.get('/task-service/task/allTaskStatus')

// 获取补货预警值
export const getAlertValue = data => request.get('/task-service/task/supplyAlertValue', data)

// 设置自动补货工单阈值
export const setAlertValue = data => request.post('/task-service/task/autoSupplyConfig', data)

// 获取工单类型列表
export const getTaskTypeList = data => request.get('/task-service/taskType/list', data)

// 获取补货详情
export const getAddGoodsDetail = taskId => request.get(`/task-service/taskDetails/${taskId}`)

// 获取工单详情
export const getTaskDetail = taskId => request.get(``)
